package icu.thatyear.main.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 购物车
 * </p>
 *
 * @author Cjy
 * @since 2024-12-06
 */
@Getter
@Setter
@TableName("tz_basket")
@Schema(name = "TzBasket", description = "购物车")
public class TzBasket implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "basket_id", type = IdType.AUTO)
    private Long basketId;

    @Schema(description = "店铺ID")
    @TableField("shop_id")
    private Long shopId;

    @Schema(description = "产品ID")
    @TableField("prod_id")
    private Long prodId;

    @Schema(description = "SkuID")
    @TableField("sku_id")
    private Long skuId;

    @Schema(description = "用户ID")
    @TableField("user_id")
    private String userId;

    @Schema(description = "购物车产品个数")
    @TableField("basket_count")
    private Integer basketCount;

    @Schema(description = "购物时间")
    @TableField("basket_date")
    private LocalDateTime basketDate;

    @Schema(description = "满减活动ID")
    @TableField("discount_id")
    private Long discountId;

    @Schema(description = "分销推广人卡号")
    @TableField("distribution_card_no")
    private String distributionCardNo;
}
